package com.eastdigit.shiro;

import org.apache.shiro.config.Ini;
import org.springframework.beans.BeansException;

/**
 * Created by Administrator on 2015/6/18.
 */
public class CustomChainDefinition {

    private String filterChainDefinitions;

    public Ini.Section getObject() throws BeansException {
        Ini ini = new Ini();
        // 加载默认的url
        ini.load(filterChainDefinitions);
        Ini.Section section = ini.getSection(Ini.DEFAULT_SECTION_NAME);
        return section;
    }

    public void setFilterChainDefinitions(String filterChainDefinitions) {
        this.filterChainDefinitions = filterChainDefinitions;
    }
}
